main {
    background-color: #f4f4f4;
}

.custom-section-box {
    padding-bottom: 56px;
}

.tag {
    display: inline-block;
    font-size: 10px;
    border-radius: 2px;
    line-height: normal;
    padding: 1px 4px;
    text-align: center;
    margin: 0 5px 5px 0;
}

.tag-hollow {
    border: 1px solid #b4a078;
    color: #b4a078;
}

/* 特性 */
.custom-characteristic-box ul {
    display: flex;
    justify-content: space-evenly;
    background-color: #F9F9F9;
    padding: 10px;

    li {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        align-items: center;

        .custom-img {
            flex-basis: 30px;
            margin-right: 5px;

            img {
                width: 100%;
                height: 100%;
                border-radius: 50%;
            }
        }

        .custom-txt {
            font-size: 12px;
            line-height: 1;

            div:first-child {
                margin-bottom: 5px;
            }
        }
    }

}

/* 商品信息 */
.custom-goods-info-box {
    background-color: #ffffff;
    padding: 15px 15px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 12px;

    .custom-goods-info-left {
        text-align: left;

        h2 {
            font-size: 15px;
        }

        .custom-descript {
            font-size: 12px;
            color: #7f7f7f;
            margin-top: 5px;
        }

        .custom-price {
            font-size: 20px;
            font-weight: 700;
            color: #B4282D;
            margin-top: 5px;
        }

        .tag-hollow {
            color: #f48f18;
            border: 1px solid #f48f18;
            margin: 10px 5px 0 0;

            .iconfont {
                font-size: 12px;
            }
        }
    }

    .custom-goods-info-right {
        border-left: 1px dashed #919191;
        font-size: 12px;
        color: #B4282D;
        padding: 10px;

        .custom-num {
            font-weight: 700;
        }

        p {
            margin-bottom: 5px;
        }

        .custom-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #fff;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            width: 48px;
            padding: 0 5px;
            border: 1px solid #7f7f7f;
            color: #7f7f7f;
            background-color: #fff;
            border-radius: 2px;
        }
    }
}

/* 服务 */

.custom-flex-list-box>ul {
    background-color: #fff;
    padding-left: 10px;
    margin: 10px 0;

    >li {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        padding: 10px 10px 10px 0;
        font-size: 12px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        list-style: none;

        &:not(:first-child) {
            border-top: 1px solid #d9d9d9;
        }

        .custom-left {
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            align-items: center;

            &:first-child {
                -ms-flex-negative: 0;
                flex-shrink: 0;
            }
        }

        .custom-mid {
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;

            ul {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -ms-flex-wrap: wrap;
                flex-wrap: wrap;
                font-size: 12px;
                color: #7f7f7f;
                padding-top: 4px;

                >li {
                    line-height: 1;
                    margin: 0 15px 10px 0;
                    padding-left: 10px;
                    list-style: none;
                    position: relative;

                    &::after {
                        content: '';
                        display: inline-block;
                        width: 4px;
                        height: 4px;
                        background-color: #b4282d;
                        position: absolute;
                        left: 2px;
                        top: 4px;
                    }
                }
            }
        }

        .custom-right {
            -ms-flex-negative: 0;
            flex-shrink: 0;

            i {
                color: #7f7f7f;
                font-size: 12px;
            }
        }
    }
}

/* 商品详情 */
.custom-flex-list-box .custom-attr-list {
    padding: 10px 10px 0;

    >li {
        border-top: 1px dashed #999 !important;

        .custom-left {
            flex-basis: 70px;
            color: #999;
            -webkit-box-flex: 0;
            -ms-flex-positive: 0;
            flex-grow: 0;
        }

        .custom-right {
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
        }
    }


}

.custom-question-list {
    color: #787878;
    line-height: 15px;
    font-size: 12px;

    >li {
        margin-bottom: 10px;
        padding-left: 10px;
        position: relative;

        &::after {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            background-color: #b4282d;
            position: absolute;
            left: 2px;
            top: 4px;
        }

        .custom-question {
            color: #303030;
            margin-bottom: 5px;
        }
    }
}

.custom-dot-list {
    font-size: 12px;

    >li {
        padding-left: 10px;
        position: relative;

        &:after {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            background-color: #b4282d;
            position: absolute;
            left: 2px;
            top: 4px;
        }
    }
}

/* 用户评价 */
.custom-comment-user {
    font-size: 12px;

    .custom-user-info {
        padding-top: 10px;
        display: flex;
        align-items: center;
        margin-bottom: 10px;

        .custom-portrait {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            margin-right: 5px;
        }

        .custom-name {
            margin-right: 5px;
        }

        .custom-star .iconfont {
            font-size: 12px;
            color: #ffb54a;
            margin-right: 3px;
        }
    }

    .custom-extra-info {
        color: #7f7f7f;
        line-height: 1;
        margin-bottom: 5px;
    }

    p {
        line-height: 1.6;
    }
}

/* 常见问题 */
.custom-mod {
    background-color: #fff;

    .custom-mod-hd {
        font-size: 14px;
        line-height: 1;
        padding: 20px 0;
        text-align: center;
        position: relative;

        &::before {
            content: '';
            display: inline-block;
            width: 130px;
            height: 1px;
            background-color: #ccc;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }

        .custom-mod-tit {
            padding: 0 5px;
            background-color: #fff;
            position: relative;
            z-index: 2;
        }
    }

    .custom-mod-bd {
        padding: 10px;
    }
}

/* 面板 */
.custom-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 48px 0 54px 0;
    z-index: 99;

    .custom-panel-bd {
        padding: 10px;

        .custom-question-list>li {
            margin-bottom: 20px;

            p {
                line-height: 1.5;
            }
        }
    }

    .custom-panel-ft {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 44px;
        text-align: center;
        font-size: 12px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        background-color: #fafafa;
        border-top: 1px solid #ececec;
        position: fixed;
        bottom: 0;
        left: 0;
    }

}

.custom-comment-list {
    .custom-panel-hd {
        text-align: left;
        padding: 5px 10px;

        .tag-hollow {
            color: #b4282d;
            border-color: #b4282d;
            padding: 4px 5px;
        }
    }

    .custom-panel-bd {
        padding-top: 0;
        padding-bottom: 0;

        li {
            border-bottom: 1px solid #ececec;
            padding-bottom: 10px;
        }
    }
}

.custom-spec-box {
    font-size: 12px;

    .custom-spec-hd {
        display: flex;
        align-items: flex-end;

        img {
            width: 84px;
            height: 84px;
            background-color: #f4f4f4;
        }

        .custom-txt {
            margin-left: 10px;
            line-height: 1.6;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    }

    .custom-spec-list {
        margin-top: 20px;

        &>li {
            padding-bottom: 10px;

            h4 {
                padding-bottom: 10px;
            }

            .tag-hollow {
                border-color: #333;
                color: #333;
                padding: 7px 14px;
                margin: 0 10px 10px 0;

                &.active {
                    border-color: #b4282d;
                    color: #b4282d;
                }
            }
        }
    }
}

.custom-count {
    height: 28px;
    line-height: 28px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;

    &:first-child {
        border-right: none;
        border-radius: 2px 0 0 2px;
    }

    span {
        width: 38px;
        border: 1px solid #d9d9d9;
        font-size: 22px;
        color: #999;
    }

    input {
        border: 1px solid #d9d9d9;
        line-height: 28px;
        text-align: center;
        width: 60px !important;
    }
}

/* 底部Tabbar */
.custom-footer-box {
    height: 52px;

    .custom-footer-content {
        display: -webkit-box;
        display: -moz-flex;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-flow: row nowrap;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-flow: row nowrap;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 50%;
        width: 100%;
        z-index: 90;
        background-color: #fff;
        padding-bottom: env(safe-area-inset-bottom);
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        box-shadow: 0 -2px 3px -1px #eee;
    
        .custom-kefu {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 52px;
            width: 78px;
            border-right: 1px solid #eee;
    
            i {
                display: inline-block;
                vertical-align: middle;
                text-align: center;
                width: 30px;
                height: 30px;
                line-height: 30px;
                font-size: 24px;
            }
        }
    
        .custom-button {
            -webkit-box-align: center;
            -ms-flex-align: center;
            -moz-align-items: center;
            align-items: center;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -moz-justify-content: center;
            justify-content: center;
            text-align: center;
            height: 52px;
            line-height: 52px;
            font-size: 14px;
        }
    
        .custom-buy {
            -webkit-box-flex: 1;
            -moz-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            border-right: 0;
        }
    
        .custom-cart {
            -webkit-box-flex: 1;
            -moz-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
            display: inline-block;
            vertical-align: middle;
            text-align: center;
            line-height: 34px;
            color: #fff;
            border: 1px solid #dd1a21;
            background-color: #dd1a21;
            overflow: hidden;
        }

        .custom-back {
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 52px;
            width: 78px;
            border-right: 1px solid #eee;
        }
    }
}
